
export function filterAuth(arr){
    return arr.map(item=>{
       const o = {
        ...item,
        label:item.name,
        key:item.path,
        icon:`<i className="iconfont icon-${item.icon}"></i>`,
       }
       if(o.children){
        o.children=filterAuth(o.children)
       }
       return o
    })
    }